package r4.pierwszy.raz;

public class Client {

	public static void main(String[] args) {

		CharStack stack = new CharStack(40);
		
		String str = "!no tis ot nuf era skcatS";
		int length = str.length();
		System.out.println("Oryginal string: " + str);
		for(int i = 0; i < length; i++)
			stack.push(str.charAt(i));
		
		System.out.print("Reversed string: ");
		while(!stack.isEmpty())
			System.out.print(stack.pop());
		System.out.println();
	}

}
